<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFhNewsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('fh_news', function (Blueprint $table) {
            $table->increments('id');
            $table->string('title')->default('')->comment('标题');
            $table->string('description')->default('')->comment('描述');
            $table->string('img')->nullable()->comment('新闻配图');
            $table->string('keyword')->nullable()->comment('SEO关键词');
            $table->string('seo_desc')->nullable()->comment('SEO描述');
            $table->tinyInteger('type')->default('1')->nullable()->comment('1.行业资讯 ,2峰华资讯');
            $table->tinyInteger('hot')->default('1')->nullable()->comment('0不显示，1热门');
            $table->tinyInteger('show')->default('1')->nullable()->comment('0不显示,1默认显示');
            $table->longText('content')->nullable()->comment('文章内容');
            $table->integer('nums')->default('0')->nullable()->comment('查看数量');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('fh_news');
    }
}
